package lore.miniwechat.dao;

import lore.miniwechat.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao {
    /**
     * 根据用户名查询用户信息
     */

    //select * form user where user_name = #{name}

    User findByName(String name);

    @Select("SELECT * FROM USER LIMIT #{start} ,#{size}")
    List<User> findUserPageData(@Param("start") Integer start, @Param("size") Integer size);

}
